" map Esc to exit terminal mode
tnoremap <Esc> <C-\><C-n>
